package hot100;

public class singleNumber22 {
    public int singleNumber2(int[] nums) {
        int ret = 0;
        for(int x : nums) {
            ret = ret ^ x;
        }
        return ret;
    }
}
